
<?php 

if (count($this->results) == 0){?>


<?php } else {
	?>
<?php if($this->title) {?>
<h1 class="home" style="margin-top:25px;">Popular Books </h1>
<?php }?>
<ul class="thumbnails">		
<div class="dotline"></div>
	<?php
foreach ($this->results as $book) { 
	?>
    
    <li>
    	<a title="<?php echo $book->name;?>" href="<?php echo $this->url(array("controller"=>"book", "action"=>"detail", "id"=>$book->ASIN), "default", true);?>"><img src="<?php echo $this->bookThumbnail($book); ?>"/></a>	
    </li>
<?php
}

?>
<div class="dotline"></div>
</ul>
<?php }
?>